<template>
	<view>
		<view>
			<!-- 自定义头部导航栏 -->
			<navbar :title="title" :ctype="ctype"></navbar>
		</view>
		<view class="sannong">
			<view class="sannongMain">
				<view class="sannongselect">
					<view class="conSele" @click="selectCl">
						我发布的
					</view>
				</view>
				<view class="fg-li" @click="articleDetails">
					<view class="con-list">
						<view class="clist_k">
							<view class="clist_tit">冬季食补宝典，这样吃养生又瘦身哦哦哦哦</view>
							<view class="l-txt">农业科普</view>
						</view>
						<view class="illustration">配图</view>
					</view>
					<view class="fabu-time">
						<view class="cTime">发布时间：2024-10-10   11:00</view>
						<view class="del">删除</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import navbar from "@/components/navbarA" // 自定义头部导航栏组件
	export default {
		components: {
			navbar
		},
		data() {
			return {
				/* 自定义导航栏 */
				title: "我发布的",
				ctype:'2',
				inputConent:'',
				tabIndex:0,
				tabSele:[{
					text:'农业科普'
				},{
					text:'农业新闻'
				},{
					text:'平台资讯'
				}],
				showSele:false
			}
		},
		methods: {
			conGoto(){
				
			},
			changeTab(i){
				this.tabIndex = i
			},
			selectCl(){
				this.showSele = !this.showSele
			},
			articleDetails(){
				uni.navigateTo({
					url:"/pages/home-btn/pages/articleDetails/articleDetails"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.sannong{
	width: 100%;
	height: 100%;
}

.sannongMain{
	width: 95%;
	margin: 0 auto;
	background-color: #fff;
	margin-top: 15rpx;
	border-radius: 10rpx;
	.sannongselect{
		border-bottom: 1px solid #CCCCCC;
		height: 65rpx;
		line-height: 65rpx;
		.conSele{
			font-size: 31rpx;
			color: #333333;
			position: relative;
			text-align: center;
		}
	}
	.fg-li{
		width: 90%;
		margin: 0 auto;
		margin-top: 15rpx;
		padding-bottom: 25rpx;
		border-bottom: 1px solid #CCCCCC;
		.con-list{
			display: flex;
			align-items: center;
			.clist_k{
				width: 70%;
				.clist_tit{
					font-weight: 400;
					font-size: 26rpx;
					color: #333232;
					// font-weight: bold;
					line-height: 40rpx;
				}
				.l-txt{
					font-size: 21rpx;
					color: #A6A6A6;
					margin-top: 20rpx;
				}
			}
			.illustration{
				width: 28%;
				height: 114rpx;
				background: #D9D9D9;
				border-radius: 10rpx;
				margin-left: 2%;
			}
		}
		.fabu-time{
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 15rpx;
			.cTime{
				font-weight: 400;
				font-size: 21rpx;
				color: #A6A6A6;
			}
			.del{
				font-weight: 400;
				font-size: 21rpx;
				color: #333333;
				line-height: 40rpx;
				width: 72rpx;
				text-align: center;
				background-color: #F2F2F2;
				border: 1px solid #A6A6A6;
				border-radius: 6rpx;
			}
		}
	}
}
.fg-li:last-child{
	border: none;
}
</style>
